package com.example.wheelguide;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class ProfilesMenuActivity extends Activity{
    ImageButton button_img;
	Button button1;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        button_img= new ImageButton(this);
		button1= new Button(this);
		setContentView(R.layout.profiles_menu);

        button_img = (ImageButton) findViewById(R.id.button_Profile_choose);
        button_img.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i= new Intent(v.getContext(),ProfilePreCreateActivity.class);
				startActivity(i);
				
			}
		});

        button_img = (ImageButton) findViewById(R.id.button_Profile_create);
        button_img.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i= new Intent(v.getContext(),ProfilePreCreateActivity.class);
				startActivity(i);
				
			}
		});


        button_img = (ImageButton) findViewById(R.id.button_Profile_edit_delete);
        button_img.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i= new Intent(v.getContext(),ProfileEditDeleteActivity.class);
				startActivity(i);
				
			}
		});

        button_img = (ImageButton) findViewById(R.id.button_Profile_delete);
        button_img.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent i= new Intent(v.getContext(),ProfileEditDeleteActivity.class);
                startActivity(i);

            }
        });

        button1 = (Button) findViewById(R.id.button_back);
        button1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
